#!/bin/sh
CUR=$(cd "$(dirname "$0")"; pwd)

# `./run.sh -D` for background running
DEMONIZE=$1

CFG=${CUR}/conf/settings.py

API_SETTINGS=${CFG} gunicorn api:app -c ${CUR}/conf/gunicorn.conf.py ${DEMONIZE}
# API_SETTINGS=${CFG} python run.py
